@arterealcorreto
Warning (2): Invalid argument supplied for foreach() [APP/View/Produtos/index.ctp, line 12]Code Context
<div class="row">
<?php foreach ($produtos as $produto) { ?>
$viewFile = '/home/rootec/public_html/arterealcertificado/app/View/Produtos/index.ctp' $dataForView = array( 'produtos' => null, 'categoria' => '@arterealcorreto', 'Filter' => object(FilterComponent) { settings => array([maximum depth reached]) components => array([maximum depth reached]) controller => object(ProdutosController) {} [protected] _filter => array([maximum depth reached]) [protected] _options => array( [maximum depth reached] ) [protected] _controller => null [protected] _conditions => array([maximum depth reached]) [protected] _params => array([maximum depth reached]) [protected] _Collection => null [protected] _componentMap => array([maximum depth reached]) [private] _name => 'Filter' [private] _instance => (int) 1 } ) $produtos = null $categoria = '@arterealcorreto' $Filter = object(FilterComponent) { settings => array() components => array() controller => object(ProdutosController) {} [protected] _filter => array() [protected] _options => array( 'auto' => array( [maximum depth reached] ), 'explode' => array( [maximum depth reached] ), 'label' => array( [maximum depth reached] ), 'form' => array( [maximum depth reached] ) ) [protected] _controller => null [protected] _conditions => array() [protected] _params => array() [protected] _Collection => null [protected] _componentMap => array() [private] _name => 'Filter' [private] _instance => (int) 1 } $quantidade = array( 'todos' => (int) 66, 'ecpf' => (int) 33, 'ecnpj' => (int) 15, 'enfe' => (int) 15, 'midia' => (int) 3 )include - APP/View/Produtos/index.ctp, line 12 View::_evaluate() - CORE/Cake/View/View.php, line 961 View::_render() - CORE/Cake/View/View.php, line 923 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 960 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 118